// app.js
App({
  globleData: {
    url: "https://local.sangedon.cn",
    token: "sangedon",
    // url: "https://trade.sangedon.cn",
    // token: "632fd8cc04d071fe29b96100",
    orderStastic: [
      {
        type: 1,
        name:'连涨'
      },
      {
        type: 2,
        name:'连跌'
      },
      {
        type: 3,
        name:'连续放量'
      },
      {
        type: 4,
        name:'连续缩量'
      },
      {
        type: 5,
        name:'涨停'
      },
      {
        type: 6,
        name:'跌停'
      },
    ]
  },

  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    userInfo: null
  }
})
